package com.gwtstructs.gwt.client.test.widgets;

import com.gwtstructs.gwt.client.widgets.autocompleterTextbox.ICustomSuggestion;

public class CustomSuggestionImpl implements ICustomSuggestion {
	private String filterKey;
	private String  html;
	public CustomSuggestionImpl(String filterKey, String html) {
		super();
		this.filterKey = filterKey;
		this.html = html;
	}

	@Override
	public String getDisplayString(int position, String currentTextValue) {
		return html;
	}

	@Override
	public String getValueString() {
		return filterKey;
	}
}
